package com.api.model.dto;

import cn.hutool.core.annotation.Alias;
import lombok.Data;

import java.util.ArrayList;
import java.util.HashMap;

@Data
public class TranslateResult {
    /**
     * 百度翻译输出结果
     * {
     *     "from": "en",
     *     "to": "zh",
     *     "trans_result": [
     *         {
     *             "src": "apple",
     *             "dst": "苹果"
     *         }
     *     ]
     * }
     */
    private String from;
    private String to;
    @Alias("trans_result")
    private ArrayList<HashMap<String,String>> transResults;

}
